package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpActJiugonggeRegistration implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 活动id
     *
     * @mbg.generated
     */
    private String actId;

    /**
     * 参与人openid
     *
     * @mbg.generated
     */
    private String openid;

    /**
     * 参与人昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 抽奖次数
     *
     * @mbg.generated
     */
    private Integer awardsNum;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 抽奖状态0:未抽奖;1:已抽奖;
     *
     * @mbg.generated
     */
    private String awardsStatus;

    /**
     * 公众号原始ID
     *
     * @mbg.generated
     */
    private String jwid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActId() {
        return actId;
    }

    public void setActId(String actId) {
        this.actId = actId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getAwardsNum() {
        return awardsNum;
    }

    public void setAwardsNum(Integer awardsNum) {
        this.awardsNum = awardsNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAwardsStatus() {
        return awardsStatus;
    }

    public void setAwardsStatus(String awardsStatus) {
        this.awardsStatus = awardsStatus;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", actId=").append(actId);
        sb.append(", openid=").append(openid);
        sb.append(", nickname=").append(nickname);
        sb.append(", awardsNum=").append(awardsNum);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", awardsStatus=").append(awardsStatus);
        sb.append(", jwid=").append(jwid);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActJiugonggeRegistration other = (WechatMpActJiugonggeRegistration) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getActId() == null ? other.getActId() == null : this.getActId().equals(other.getActId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getAwardsNum() == null ? other.getAwardsNum() == null : this.getAwardsNum().equals(other.getAwardsNum()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getAwardsStatus() == null ? other.getAwardsStatus() == null : this.getAwardsStatus().equals(other.getAwardsStatus()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getActId() == null) ? 0 : getActId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getAwardsNum() == null) ? 0 : getAwardsNum().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getAwardsStatus() == null) ? 0 : getAwardsStatus().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        return result;
    }
}